﻿using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace AppSocketModel.Alarm
{
    /// <summary>
    /// 报警类型鸡肋
    /// </summary>
    [BsonIgnoreExtraElements]
    public class AlarmTypeBase
    {
        /// <summary>
        /// 启用报警
        /// </summary>
        public bool IsAlarm { set; get; }

        /// <summary>
        /// 报警通知配置
        /// </summary>
        public AlarmNotifyDto AlarmNotify = new AlarmNotifyDto();

        /// <summary>
        /// 报警通知字符串前缀
        /// </summary>
        public string AlarmMsgPre { set; get; }
    }
}
